// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'ExpenseAssginStandardId',
        footer: "Foots",
        cnName: '费用分配标准',
        name: 'ExpenseAssginStandard',
        newTabEdit: false,
        url: "/ExpenseAssginStandard/",
        sortName: "ExpenseAssginStandardId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"BillNo":"","BillName":"","ExpenseTypeId":"","ExpenseItemId":"","IsEnabled":"","Remark":""};
    const editFormOptions = [[{"title":"单据编号","field":"BillNo","disabled":true,"type":"text"},
                               {"title":"名称","required":true,"field":"BillName","type":"text"}],
                              [{"dataKey":"费用类型","data":[],"title":"费用类型","required":true,"field":"ExpenseTypeId","type":"select"},
                               {"dataKey":"费用项目","data":[],"title":"费用要素","required":true,"field":"ExpenseItemId","type":"select"}],
                              [{"dataKey":"是否","data":[],"title":"是否可用","required":true,"field":"IsEnabled","type":"radio"},
                               {"title":"备注","required":true,"field":"Remark","type":"textarea"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'ExpenseAssginStandardId',title:'费用分配标准标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'BillNo',title:'单据编号',type:'string',width:110,readonly:true,align:'left'},
                       {field:'BillName',title:'名称',type:'string',width:120,require:true,align:'left'},
                       {field:'ExpenseTypeId',title:'费用类型',type:'int',bind:{ key:'费用类型',data:[]},width:110,require:true,align:'left'},
                       {field:'ExpenseItemId',title:'费用要素',type:'int',bind:{ key:'费用项目',data:[]},width:110,require:true,align:'left'},
                       {field:'IsEnabled',title:'是否可用',type:'int',bind:{ key:'是否',data:[]},width:110,require:true,align:'left'},
                       {field:'Remark',title:'备注',type:'string',width:150,require:true,align:'left'},
                       {field:'CreateID',title:'创建人标识',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Creator',title:'创建人名称',type:'string',width:100,align:'left'},
                       {field:'CreateDate',title:'创建日期',type:'datetime',width:150,align:'left'},
                       {field:'ModifyID',title:'修改人标识',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Modifier',title:'修改人名称',type:'string',width:100,align:'left'},
                       {field:'ModifyDate',title:'修改日期',type:'datetime',width:150,align:'left'},
                       {field:'AuditDate',title:'审核日期',type:'datetime',width:150,align:'left'},
                       {field:'AuditStatus',title:'审核状态',type:'int',bind:{ key:'audit',data:[]},width:80,align:'left'},
                       {field:'AuditId',title:'审核人标识',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Auditor',title:'审核人',type:'string',width:110,align:'left'}];
    const detail =  {
                    cnName: '分配明细',
                    table: 'ExpenseAssginStandardDetail',
                    columns: [{field:'ExpenseAssginStandardDetailId',title:'费用分配标准明细标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ExpenseAssginStandardId',title:'费用分配标准标识',type:'int',width:110,hidden:true,require:true,align:'left'},
                       {field:'DepartmentId',title:'部门',type:'guid',bind:{ key:'部门级联',data:[]},width:110,edit:{type:'cascader'},require:true,align:'left'},
                       {field:'ExpenseStandardTypeId',title:'费用分配标准',type:'int',bind:{ key:'费用分配标准类型',data:[]},width:110,edit:{type:'select'},require:true,align:'left'},
                       {field:'ProductStandardTypeId',title:'在产品分配标准',type:'int',bind:{ key:'在产品分配标准类型',data:[]},width:110,edit:{type:'select'},require:true,align:'left'}],
                    sortName: 'ExpenseAssginStandardDetailId',
                    key: 'ExpenseAssginStandardDetailId'
                                            };
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}